package com.stylefeng.guns.modular.small.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

@Slf4j
@Data
@JsonInclude(value= JsonInclude.Include.NON_EMPTY)
public class ResponseResultDTO<T> implements Serializable {

    private String status;

    private String msg;

    private T data;

    private   String  userType;

    public  ResponseResultDTO(){
        this.status="0000";
        this.msg="SUCCESS";
    }

    public  ResponseResultDTO(String status,String msg){
        this.status=status;
        this.msg=msg;
    }

    public  ResponseResultDTO(String status,String msg,T t){
        this.status=status;
        this.msg=msg;
        this.data=t;
    }

}
